home *** CD-ROM | disk | FTP | other *** search
/ 100 Great Games for Palm OS 2 / PalmV2012301.ISO / top100.dxr / 00012_Script_Go to Net Page < prev    next >
Text File  |  2000-06-29  |  2KB  |  48 lines

  1. -- Web       Go to       Page
  2.  
  3.  
  4. -- behavior library version 1.1
  5.  
  6. -- when called froma shockwave movie, replaces the shocked page.  When called from authoring
  7. -- or projector, launches a browser and displays the page.
  8. --
  9. -- also functions through lingo by handling message 'initGotoNetPage', 
  10. -- for example if this behavior was assigned to sprite 5, use
  11. -- sendsprite 5, #initGotoNetPage
  12.  
  13.  
  14. property whichEvent, whichURL
  15.  
  16. on initGotoNetPage me
  17.   init me
  18. end
  19.  
  20. on mouseUp me
  21.   if whichEvent = #mouseup    then init me
  22. end
  23.  
  24. on prepareFrame me
  25.   if whichEvent = #prepareframe then init me
  26. end
  27.  
  28. on exitFrame me
  29.   if whichEvent = #exitframe  then init me
  30. end
  31.  
  32. on init me
  33.   gotoNetPage the whichURL of me
  34. end
  35.  
  36. ---
  37.  
  38. on getPropertyDescriptionList  
  39.   set p_list = [       #WhichURL: [ #comment:   "Destination URL:",                     #format:   #string,                    #default:   "http://www.macromedia.com                  " ],    #WhichEvent: [ #comment:   "Initializing Event:",                     #format:   #symbol,                      #range: [ #MouseUp, #PrepareFrame, #ExitFrame, #InitGotoNetPage],                    #default:   #MouseUp ]                  ]
  40.   return p_list  
  41. end
  42.  
  43. on getBehaviorDescription
  44.   return "Loads the designated HTML Page when the specified event occurs.  When called from a Shockwave movie, this behavior replaces the current page displayed in the web browser.  When called from a projector or in authoring mode, it opens a browser to display the requested page." & RETURN & "PARAMETERS:" & RETURN & "ò Destination URL - Enter the complete URL of the destination page. Include http://."  & RETURN & "ò Initializing Event - Specify the event that triggers the behavior."  
  45.   
  46. end
  47.  
  48.